Pearson Edexcel · A-Level · Mathematics
Course version: 603/1499/0 · Version from Sept 2017
Further Pure Mathematics 2: 5.4 Fermat's Little Theorem.
Full specification wording
Number theory - Paper 4A: Further Pure Mathematics 2: 5.4 Fermat's Little Theorem.
Fermat's Little Theorem states that if p is prime and a is an integer not divisible by p, then a^(p−1) ≡ 1 (mod p).
- Point 4 of 7
Study notes
From the teaching notes for this specification point.
The idea
Fermat's Little Theorem states that if p is prime and a is an integer not divisible by p, then a^(p−1) ≡ 1 (mod p). A useful corollary is that a^p ≡ a (mod p) for every integer a when p is prime, which also covers the case where p divides a. To use the theorem, confirm the modulus is prime, check that the base is coprime to it, then reduce the exponent modulo p−1 by writing a^(p−1) ≡ 1 and splitting the power into a multiple of p−1 plus a remainder. For example, to find 3^100 (mod 7), note 100 = 6×16 + 4, so 3^100 ≡ (3^6)^16 × 3^4 ≡ 1 × 81 ≡ 4 (mod 7). The theorem fails when the modulus is composite, so test primality first, and remember it gives no information when p divides a.
What earns the marks
- States that a^(p−1) ≡ 1 (mod p) for prime p and integer a with p not dividing a.
- Applies the corollary a^p ≡ a (mod p) including the case where p divides a.
- Confirms the modulus is prime before invoking the theorem.
- Reduces the exponent modulo p−1 by writing it as a multiple of p−1 plus a remainder.
- Computes the residual power modulo p correctly after reducing the exponent.
Common mistakes and how to put them right
Uses the theorem with a composite modulus.
Put it right: Check primality of the modulus first.
Reduces the exponent modulo p instead of modulo p−1.
Put it right: Use the exponent of the group, p−1.
Forgets the case where p divides a and claims the power is 1.
Put it right: Apply the corollary a^p ≡ a instead.
Miscalculates the remainder when splitting the exponent.
Put it right: Verify the division of the exponent by p−1.
Exam tips
- State the theorem's conditions explicitly before substituting numbers.
- Show the decomposition of the exponent into a multiple of p−1 plus a remainder.
- Check the final residue lies in the range 0 to p−1.
Try the lesson
The start of the Number theory - Paper 4A: Further Pure Mathematics 2: 5.4 Fermat's Little Theorem. lesson, made from teaching notes for this specification point.
Have a go first
Fermat's Little Theorem states that for any prime p and any integer a with p not dividing a, a^(p-1) ≡ 1 (mod p). Given that 7 is prime and 7 does not divide 2, use this theorem to find 2^6 modulo 7.
There is more to this lesson
The full lesson goes on to check your understanding and help you earn the marks. Create a free account to carry on, with your progress saved.
5 free practice questions every day · Free forever · No card required
Test your understanding of Number theory - Paper 4A: Further Pure Mathematics 2: 5.4 Fermat's Little Theorem.
Active recall beats re-reading. Take an instant quiz now to test what you’ve learned and lock it into long-term memory.
5 free practice questions every day · Free forever · No card required